package com.igeek.compus.study.order.entity;

import java.math.BigDecimal;
import java.util.Date;

public class Order {

    private int id;
    // 订单号
    private String orderCode;
    // 父订单号
    private String parentOrder;
    // 打折前订单总金额
    private BigDecimal totalAmount;
    // 订单实际支付金额
    private BigDecimal amount;
    // 订单创建时间
    private Date createTime;
    // 订单创建时间戳
    private Long createTimeStamp;
    // 订单状态
    private Integer status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getParentOrder() {
        return parentOrder;
    }

    public void setParentOrder(String parentOrder) {
        this.parentOrder = parentOrder;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getCreateTimeStamp() {
        return createTimeStamp;
    }

    public void setCreateTimeStamp(Long createTimeStamp) {
        this.createTimeStamp = createTimeStamp;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", orderCode='" + orderCode + '\'' +
                ", parentOrder='" + parentOrder + '\'' +
                ", totalAmount=" + totalAmount +
                ", amount=" + amount +
                ", createTime=" + createTime +
                ", createTimeStamp=" + createTimeStamp +
                ", status=" + status +
                '}';
    }
}
